{% extends "admin/admin.html" %}
{% block content %}
<div class="box-body table-responsive no-padding">
    <table class="table table-hover">
        {% include 'admin/alert_info.html' %}
        <tbody>
        <tr>
            <th>编号</th>
            <th>电影</th>
            <th>用户</th>
            <th>添加时间</th>
            <th>操作事项</th>
        </tr>
        {% for moviecollect in page_moviecollects.items %}
            <tr>
                <td>{{ moviecollect.id }}</td>
                <td>{{ moviecollect.movie.title }}</td>
                <td>{{ moviecollect.user.name }}</td>
                <td>{{ moviecollect.add_time }}</td>
                <td>
                    <a class="label label-danger" href="{{ url_for('admin.collect_delete', delete_id=moviecollect.id) }}">删除</a>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
</div>
<div class="box-footer clearfix">
    {% import 'ui/admin_page.html' as pg %}
    {{ pg.page(page_moviecollects, 'admin.collect_list') }}
</div>

{% endblock  %}
